<el-dialog class="dialogStyleBase" :title="mixinEdit_editTitle" width="500px" :visible.sync="mixinEdit_editVisible"
    :before-close="function(){mixinEdit_editBoxClose('editForm')}" append-to-body>
    <div class="dialogStyleBaseBox" v-loading="mixinEdit_loading">
        <el-form ref="editForm" :model="form" label-width="100px" label-position="left">
            <el-form-item label="站点名称" prop="name" :rules="{ required: true, message: '站点名称 不能为空'}">
                <el-input v-model="form.name" maxlength="10" show-word-limit></el-input>
            </el-form-item>

            <el-form-item label="站点logo" prop="logoImg" :rules="{ required: true, message: '站点logo 不能为空'}">
                <SelectImage v-model="form.logoImg" :count="1"></SelectImage>
            </el-form-item>

            <el-form-item label="添加管理员" prop="umsAdminId" :rules="{ required: true, message: '请选择管理员'}">
                <el-button @click="SelectPlatformAdmin()">{{mobile?(realName+' - '+mobile):'请选择管理员'}}</el-button>
            </el-form-item>

            <el-form-item label="过期类型" prop="type" :rules="{ required: true, message: '请选择过期类型'}">
                <el-radio-group v-model="form.type">
                    <el-radio :label="1">有限</el-radio>
                    <el-radio :label="2">无限</el-radio>
                </el-radio-group>
            </el-form-item>

            <el-form-item v-if="form.type==1" label="过期时间" prop="validityTime"
                :rules="{ required: form.type==1, message: '请选择过期时间'}">
                <el-date-picker value-format="yyyy-MM-dd" v-model="form.validityTime" :disabled="form.type!=1"
                    style="width:100%" type="date" placeholder="选择日期"> </el-date-picker>
            </el-form-item>


            <el-form-item label="备注信息" prop="remark">
                <el-input type="textarea" autosize maxlength="50" autosize="{minRows: 2,maxRows: 4}"
                    v-model="form.remark" show-word-limit></el-input>
            </el-form-item>
        </el-form>
    </div>
    <div slot="footer">
        <el-row>
            <el-col :span="12" style="text-align: left;">
                <el-button :disabled="mixinEdit_loading" @click="mixinEdit_resetForm('editForm')">重 置</el-button>
            </el-col>
            <el-col :span="12">
                <el-button :disabled="mixinEdit_loading" @click="mixinEdit_editBoxClose('editForm')">取 消</el-button>
                <el-button :disabled="mixinEdit_loading" type="primary" @click="mixinEdit_editFormSubmit({model:'form',ref:'editForm'})">确
                    定</el-button>
            </el-col>
        </el-row>
    </div>
</el-dialog>